package com.choudou5.solr.analyzer;

import com.choudou5.solr.analyzer.tokenizer.PositiveContinuousTokenizer;
import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.analysis.Tokenizer;

import java.io.Reader;

/**
 * <pre>
 * 描述：正向连续 分词器
 * 构建组：solr.analyzer
 * 作者：choudou5
 * 邮箱: hsolr@hotmail.com
 * 日期:Jul 15, 2015-3:18:44 PM
 * </pre>
 */
public class PositiveContinuousSplitAnalyzer extends Analyzer {

	protected TokenStreamComponents createComponents(String fieldName,
			Reader in) {
		Tokenizer token = new PositiveContinuousTokenizer(in);
		return new TokenStreamComponents(token);
	}
}
